<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板</title>
    <script src="../../vue.js"></script>
</head>
<body>

<div id="box">
    <h1 id="h11">hello word!</h1>
</div>

<script id="tp1" type="x-template">
    <div>
        <h4><span>{{hao}}</span></h4>
        <h4><span>{{hao}}</span></h4>
        <h4><span>{{hao}}</span></h4>
        <h4><span>{{hao}}</span></h4>
        <h4><span>{{hao}}</span></h4>
    </div>
</script>

<!--vue.2.0 废除了 replace 这个属性-->

<script>
    var vm = new Vue({
        el:'#box',
        template:"#tp1",
        data:{
            'hao':1,
        }
    })
</script>

</body>
</html>